Volume 13 · Chapter 10 — Mock Interviews and Rapid-Fire Revision

Full Mock Exam: Scenario Questions with Answers

Goutham Mayaluri 6 min read AWSCloud

10.1 Introduction

This chapter presents exam-style scenario questions with detailed answers and the reasoning behind them. Read each scenario, decide your answer, then check - noting how the reasoning identifies the qualifier, applies the constraints, and eliminates the plausible-but-wrong options.

Mock Exam

A company needs to decouple a spiky order-intake tier from a slower fulfillment tier so bursts don't overwhelm it, with each order processed once. Which service?

**SQS.**The keywords are “decouple,” “bursts,” and “processed once” - a queue buffers the spike and lets the fulfillment fleet drain it at a sustainable rate (load-leveling), with each message consumed by one worker via competing consumers. SNS (fan-out to many) and Kinesis (streaming to multiple consumers) don’t fit “one consumer per message.” Scale the fulfillment workers on queue depth. If strict per-customer ordering were required, a FIFO queue with the customer as message group.

Mock Exam

A workload must run a nightly batch job that takes 3 hours, fault-tolerant and cost-sensitive. Which compute and pricing?

AWS Batch (or an Auto Scaling group) on Spot Instances.”3 hours” exceeds Lambda’s 15-minute limit, so not Lambda. “Fault-tolerant” and “cost-sensitive” point to Spot (up to ~90% off) with checkpointing so reclaimed instances resume. Batch manages the queue and Spot capacity for batch jobs. On-Demand would work but isn’t the most cost-effective; Reserved doesn’t fit an intermittent nightly job.

Mock Exam

A three-tier app's database is overwhelmed by read traffic while writes are modest, and the team wants minimal changes. What do you do?

**Add read replicas and an ElastiCache cache; route reads to them.**Read-heavy with modest writes is the classic case for offloading reads to replicas and caching hot reads, keeping the primary for writes - minimal application change. A larger primary (vertical scaling) is costlier and less scalable. For authoritative reads that must be current (a balance authorizing a payment), keep those on the primary.

Mock Exam

An application on EC2 must access S3 and DynamoDB without traffic traversing the internet, at no extra cost. What do you use?

**Gateway VPC endpoints for S3 and DynamoDB.**Gateway endpoints keep S3/DynamoDB traffic on the AWS network via a route-table entry and are free. Interface endpoints (priced) are for most other services; they’d work but aren’t the free option the question implies. This also removes NAT/egress cost for that traffic.

Mock Exam

A regulated workload must recover in a second Region within minutes with near-zero data loss, cost permitting. Which DR strategy?

Warm standby(or active-active if budget allows). “Recover within minutes, near-zero data loss” rules out backup & restore (hours) and pilot light (tens of minutes); warm standby runs a scaled-down copy with continuously-replicated data (e.g. Aurora Global Database) that scales up on failover, meeting a minutes-level RTO. Route 53/ARC shifts traffic. Active-active gives near-zero RTO but at the highest cost - choose it only if the requirement demands it.

Mock Exam

A company wants to grant a partner cross-account access to a specific S3 bucket, and prevent the confused-deputy problem. How?

A cross-account IAM role with a trust policy requiring an external ID(or a bucket resource policy naming the partner account). The role’s trust policy allows the partner to assume it and requires the external ID they must present, preventing the confused-deputy attack. Sharing access keys is wrong (long-lived credentials). For a single bucket, a resource-based bucket policy granting the partner account also works.

Mock Exam

A team needs SQL analytics over petabytes in S3 only occasionally, with no infrastructure to manage. Which service?

Amazon Athena.”SQL on S3,” “occasionally,” and “no infrastructure” point to serverless, pay-per-query Athena querying data in place. Redshift is for repeated, complex BI needing a provisioned warehouse (over-engineered for occasional queries). EMR is for heavy framework-based processing, not ad-hoc SQL. Use partitioning and Parquet to cut query cost.

Mock Exam

An EC2-based app can't reach the internet from a private subnet for OS patches, but must not be reachable inbound. What's missing?

**A NAT gateway (with the private subnet’s route to it).**The requirement is outbound-only internet, which a NAT gateway in a public subnet provides while blocking inbound. Ensure the private subnet’s route table sends 0.0.0.0/0 to the NAT gateway, and deploy one per AZ for resilience. An internet gateway alone (with a public IP) would make it inbound-reachable, which the question forbids.

Mock Exam

A company must enforce that no account in its organization can create public S3 buckets or disable encryption, unbreakably. How?

Service Control Policies (SCPs) in AWS Organizations(via Control Tower). An SCP denying those actions sets a maximum-permission guardrail that even an account’s root user can’t override (explicit deny wins). IAM policies or bucket settings per account can be changed by account admins; only an SCP is unbreakable org-wide. Combine with Config rules to detect and remediate.

Mock Exam

A latency-sensitive global TCP-based game needs static IPs and fast failover to the nearest healthy Region. Which service?

AWS Global Accelerator.”Static IPs,” “TCP/non-HTTP,” “nearest healthy Region,” and “fast failover” for non-cacheable traffic point to Global Accelerator (anycast static IPs, AWS backbone routing, health-based failover). CloudFront is for cacheable HTTP content, not dynamic TCP game traffic. Route 53 latency routing helps DNS but doesn’t provide static IPs or the backbone acceleration.

Mock Exam

A serverless function intermittently exhausts an RDS database's connections under load. Best fix?

RDS Proxy(and/or Lambda reserved concurrency). RDS Proxy pools and shares database connections, absorbing the many short-lived connections Lambda opens and preventing exhaustion, while also improving failover. Reserved concurrency caps the function’s concurrency to protect the database. Increasing DB size doesn’t solve the connection-count problem as well as pooling.

Mock Exam

A company needs the lowest-cost storage for compliance archives retrieved once a year, retrievable within 12 hours. Which S3 class?

S3 Glacier Deep Archive.”Lowest cost,” “once a year,” and “within hours” match Deep Archive (cheapest, hours-long retrieval). Glacier Flexible Retrieval is pricier; Glacier Instant Retrieval is for millisecond archive access (unnecessary here). Use a lifecycle policy to transition the data there automatically, and Object Lock if immutability is required for compliance.

10.2 Closing

These scenarios model the exam’s style: a qualifier plus constraints, several plausible options, and one best answer found by matching the qualifier and eliminating constraint violations. Practise the same read-map-eliminate- choose method on every question, and drill the decision cards and keyword mappings until the selections are automatic. The final chapter closes the series.