التحضير للمقابلات · 14 سؤالاً مع إجابات نموذجية
أسئلة تقنية لوظائف البرمجيات في الرياض ودبي والدوحة: تصميم الأنظمة، وواجهات API، وSQL مقابل NoSQL، والأمان، وCI/CD، والتخزين المؤقت، ودمج الذكاء الاصطناعي، مع أطر للإجابة.
نظرة عامة
كيف تتعامل مع السؤال: Domain boundaries, async decoupling, data isolation, failure resilience.
إجابة نموذجية
Service boundaries defined by business domain (DDD); API contracts with OpenAPI/Protobuf; independent deployment; database per service (no shared schemas); async event-driven communication (Kafka/RabbitMQ) for workflows and sync (gRPC/REST) for queries; centralized telemetry (OpenTelemetry); circuit breakers (Resilience4j) and transactional outbox for consistency.
نصيحة من مسؤولي التوظيف في الخليج: Always mention trade-offs: microservices add operational cost; state when you would NOT use them.
كيف تتعامل مع السؤال: RESTful principles, HTTP verbs, security, developer ergonomics.
إجابة نموذجية
Resource-based nouns (/api/v1/orders); correct HTTP verbs (GET, POST, PUT, PATCH, DELETE); standard status codes (200, 201, 400, 401, 404, 429); cursor-based pagination; OAuth2 JWT auth; rate limiting; idempotency headers for POST transactions; structured error envelopes; comprehensive OpenAPI specs.
نصيحة من مسؤولي التوظيف في الخليج: Mention idempotency and API versioning strategies.
كيف تتعامل مع السؤال: Consistency, schema volatility, access patterns, polyglot persistence.
إجابة نموذجية
SQL (Postgres) for structured data requiring ACID transactions, complex joins, and financial ledger integrity. NoSQL (Mongo, DynamoDB) for unstructured documents, high write velocity, or key-value caching. In modern architecture, polyglot persistence (SQL primary + Redis cache + Elasticsearch search) is standard.
نصيحة من مسؤولي التوظيف في الخليج: Explain how business consistency requirements dictate the choice.
كيف تتعامل مع السؤال: Defense in depth, token rotation, RBAC/ABAC, secure crypto.
إجابة نموذجية
Passwords hashed with Argon2id or bcrypt (cost 12); stateless JWT access tokens (short TTL ~15m) paired with httpOnly secure refresh token rotation in Redis; OAuth2/OIDC for SSO; granular Role-Based Access Control (RBAC); MFA enforcement on sensitive routes; never rolling custom cryptography.
نصيحة من مسؤولي التوظيف في الخليج: Emphasize secure cookie storage over insecure localStorage.
كيف تتعامل مع السؤال: Triage -> Mitigate -> Isolate -> Root-Cause -> Postmortem.
إجابة نموذجية
1. Mitigate immediate impact (rollback deploy, flip feature flag, add capacity); 2. Check telemetry dashboards, error spikes, and distributed traces; 3. Formulate data-backed hypothesis before touching code; 4. Replicate in staging; 5. Deploy fix through CI/CD; 6. Publish blameless postmortem with preventive backlog items.
نصيحة من مسؤولي التوظيف في الخليج: Never debug directly in production databases without safety controls.
كيف تتعامل مع السؤال: Cache layers, invalidation strategy, stampede mitigation.
إجابة نموذجية
Identify read-heavy, low-mutation data; implement multi-tier caching (browser HTTP cache, CDN edge, Redis in-memory); choose invalidation strategies (TTL expiration vs event-driven purge); guard against cache stampedes using distributed locks or probabilistic early expiration.
نصيحة من مسؤولي التوظيف في الخليج: Quote: 'There are only two hard things in Computer Science: cache invalidation and naming things.'
كيف تتعامل مع السؤال: Automated gates + human culture.
إجابة نموذجية
Automated pre-commit hooks (ESLint, Prettier, TypeScript strict); mandatory CI test coverage thresholds; required 2-engineer peer reviews with clear guidelines; Architecture Decision Records (ADRs); blameless retrospectives.
نصيحة من مسؤولي التوظيف في الخليج: Emphasize that tooling should automate the mechanical checks so humans focus on logic.
كيف تتعامل مع السؤال: Commit -> Build -> Test -> Security Scan -> Staging -> Canary -> Prod.
إجابة نموذجية
Git push triggers GitHub Actions / GitLab CI; runs unit & integration tests in parallel; static analysis (SonarQube) and dependency CVE audit (Snyk); builds immutable Docker image pushed to private registry; deploys automatically to Staging; releases to Production via automated canary / blue-green with automated rollback on error spikes.
نصيحة من مسؤولي التوظيف في الخليج: Highlight automated rollback mechanisms and zero-downtime deployments.
كيف تتعامل مع السؤال: OWASP Top 10, least privilege, zero trust.
إجابة نموذجية
Strict input validation with Zod schemas; parameterized ORM queries preventing SQL injection; Context-aware escaping against XSS; secrets managed in HashiCorp Vault or AWS Secrets Manager (never in git); TLS 1.3 encryption in transit and AES-256 at rest; strict CSP and security headers in proxy middleware.
نصيحة من مسؤولي التوظيف في الخليج: Referencing local GCC data sovereignty guidelines (e.g. NCA in KSA, DESC in Dubai) is a huge plus.
كيف تتعامل مع السؤال: Scale estimation, Base62 encoding, distributed ID generation, caching.
إجابة نموذجية
Functional requirements (shorten, redirect); Traffic estimation (100M URLs/mo, 100:1 read ratio); Base62 encoding (6-7 chars = trillions of combinations); Distributed ID generator (Snowflake); Database (Postgres for persistence + Redis for hot redirects); 301 vs 302 redirect strategy; rate limiting per IP.
نصيحة من مسؤولي التوظيف في الخليج: Explain why 302 redirect is used if you want accurate click analytics.
كيف تتعامل مع السؤال: Use-case fit, prompt versioning, output guardrails, data privacy, latency control.
إجابة نموذجية
Validate use-case necessity; structure prompts with versioned schemas; enforce JSON schema output validation; implement semantic caching (Redis) to reduce latency and token costs; guard against prompt injections; ensure sensitive PII is redacted before sending to third-party LLMs; maintain deterministic fallbacks.
نصيحة من مسؤولي التوظيف في الخليج: High demand in the Gulf right now; a structured answer here immediately stands out.
كيف تتعامل مع السؤال: Evolutionary architecture, team topology, complexity trade-offs.
إجابة نموذجية
Start with a well-structured modular monolith. It provides fast iteration, simple transactions, and low operational overhead. Split into microservices only when organizational scaling (independent team domains) or distinct scalability bottlenecks demand it.
نصيحة من مسؤولي التوظيف في الخليج: Shows maturity by resisting premature architectural complexity.
كيف تتعامل مع السؤال: Constructive feedback, logic correctness, non-blocking suggestions.
إجابة نموذجية
Verify functional correctness and edge cases first; assess readability and adherence to team conventions; ask questions to understand intent rather than giving commands; clearly label blocking issues vs non-blocking 'nits'; praise clever, elegant solutions.
نصيحة من مسؤولي التوظيف في الخليج: Be kind and review the code, not the person.
كيف تتعامل مع السؤال: Decomposition, PERT estimation, buffer for unknowns, clear confidence communication.
إجابة نموذجية
Decompose requirements into subtasks under 1–2 days each; apply three-point estimation (optimistic, nominal, pessimistic); add contingency buffer for external dependencies; communicate estimates as confidence intervals rather than fixed promises; calibrate retrospectively.
نصيحة من مسؤولي التوظيف في الخليج: Distinguish an architectural estimate from a contractual business commitment.
يقرأ مسؤولو التوظيف سيرتك الذاتية قبل المقابلة وأثناءها. أنشئ سيرة خليجية متوافقة مع ATS تطابق القصص التي سترويها.