Top 100 Cloud Engineer Practice MCQs
Every question on one page: open one, choose an answer, and see why at once. Signed in, your latest answer to each question counts, and you can answer again after 24 hours.
Curated: · Written: · Reviewed:
Answers to reviewed questions count toward this role and the overall leaderboard; your latest answer to each one is the one that counts.
MCQ-1A private subnet 10.0.2.0/24 holds app instances with no public IP addresses, and they must reach a package mirror on the internet to run dnf update. The subnet's route table has only the local route for 10.0.0.0/16, and the workload is IPv4 only. Which route change gives outbound-only internet access?
Answer to see the discussion.
MCQ-2A web server in a subnet accepts inbound HTTPS on TCP 443 from internet clients, and the subnet's network ACL allows that inbound rule. Clients open connections and the handshake starts, then the connections stall because responses never leave the subnet. Which outbound rule must the network ACL add so the responses reach the clients?
Answer to see the discussion.
MCQ-3Two VPCs in one account both use 10.0.0.0/16: a payments API in VPC A and a reconciler in VPC B. The reconciler needs only TCP 443 to the API, neither VPC's CIDR can be renumbered, and routes must work by Friday. Which change makes the call work?
Answer to see the discussion.
MCQ-4A private subnet's route table holds 10.20.0.0/16 pointing to a transit gateway attachment and 10.20.4.0/24 pointing to a virtual private gateway for an on-prem VPN. An instance in the subnet sends a packet to 10.20.4.37 with no other routes present. Which target receives the packet?
Answer to see the discussion.
MCQ-5An EC2 instance in VPC A has a private hosted zone for `example.com` associated with that VPC. Running `dig api.example.com` on it returns the public A record 198.51.100.20 instead of the private 10.0.4.15. The VPC's DHCP options set points `domain-name-servers` at a corporate forwarder 10.50.0.2, which sends queries to public resolvers. Which change makes the instance return 10.0.4.15?
Answer to see the discussion.
MCQ-6An api.example.com A record currently has a TTL of 3600 seconds, and resolvers worldwide cache it for the full hour. The team must move traffic to a standby IP within 90 seconds of a primary outage. Which TTL change makes that window possible?
Answer to see the discussion.
MCQ-7A payments callback service runs in three AZs behind a load balancer and must accept TCP 443 from partners who allowlist one fixed IP per AZ. Partners send 4 ms RTT TLS handshakes, and the service itself verifies the client certificate and logs the source IP from the socket. A cross-zone load balancing trial shows some AZ-local clients landing on instances in another zone. Which load balancer design keeps the allowlisted IPs stable and the handshake end to end?
Answer to see the discussion.
MCQ-8An API runs on 12 instances behind an Application Load Balancer, and the target group checks `/healthz` every 10 seconds. `/healthz` returns 200 whenever the process is running and does not touch the database. Postgres loses its primary, every query fails with connection errors, and all 12 targets stay healthy while clients receive 500s. The team wants the load balancer to stop sending traffic to instances that cannot reach the database. Which change to `/healthz` does that?
Answer to see the discussion.
MCQ-9An internal Application Load Balancer fronts an Auto Scaling group running an API whose slowest requests take 45 seconds. On scale-in the instance is marked for deregistration, and the group terminates it 8 seconds later because no lifecycle hook is attached. Clients see 502s on requests still in flight. Which change stops the 502s?
Answer to see the discussion.
MCQ-10A Cloud Engineer role's identity policy allows ec2:* and iam:PassRole on all resources, and its permissions boundary allows only ec2:DescribeInstances, ec2:StartInstances and ec2:StopInstances. The engineer assumes the role with a session policy that allows only ec2:StartInstances. Which call succeeds?
Answer to see the discussion.
MCQ-11A payments service reads its database password from AWS Secrets Manager once at startup and keeps it in memory. After the rotation Lambda finishes, new connections fail authentication until the service restarts. Which change lets the service use the rotated password without a restart?
Answer to see the discussion.
MCQ-12A Dockerfile copies `deploy.key` into `/app` in layer 4, then runs `RUN rm /app/deploy.key && npm run build` in layer 5. The image is pushed to a shared registry, and the same digest is already pulled onto 40 cluster nodes and a contractor's laptop. The key is still valid at the git host. Which action first removes the key's exposure?
Answer to see the discussion.
MCQ-13A payments team runs Amazon RDS for PostgreSQL 16 in a private subnet with no SSH access to the instance. An auditor asks who patches the operating system under the database engine before the audit closes on Friday. Which evidence should the team record for the host OS?
Answer to see the discussion.
MCQ-14Two engineers run `terraform apply` at the same moment against one shared state object in an S3 bucket, and the second run overwrites the first run's changes in that state. The team wants the second run to wait or fail while the first run holds the state. Which backend setting provides that?
Answer to see the discussion.
MCQ-15A Terraform configuration renames an aws_instance from web to app and moves it into a child module called compute, which is declared with count = 1 in the root module. A moved block with from set to aws_instance.web and to set to the new location is added, but terraform plan still shows the instance as destroyed and created. Which to address makes the plan show a move with no destroy?
Answer to see the discussion.
MCQ-16A root module creates `aws_instance.api` with `count = length(var.hosts)`, where `var.hosts` is `["api-1","api-2","api-3","api-4"]`. Each instance sets `user_data` to a hostname taken from `var.hosts[count.index]` and has `user_data_replace_on_change = true`. Someone removes "api-2" from the list and runs `terraform plan`. Which changes does the plan propose?
Answer to see the discussion.
MCQ-17A root module manages an `orders` aws_db_instance that must keep running after another team takes it over. An engineer deleted the resource block and hand-edited terraform.tfstate to drop the `orders` entry, and the next plan came back clean. The team wants the removal reviewed in a pull request with no manual state edits. Which configuration change does that?
Answer to see the discussion.
MCQ-18A teammate changed an `aws_instance` from `t3.small` to `t3.large` in the console, and `terraform plan` now shows the change as drift. The team wants to keep `t3.large`. Which action makes the code match the real instance?
Answer to see the discussion.
MCQ-19A Deployment runs 4 replicas of a payments API with `maxSurge: 0` and `maxUnavailable: 0`, so a new rollout stalls and no new pod is ever created. The namespace quota has room for exactly one extra pod, and the SLO requires at least 4 ready pods at every moment. Which single change lets the rollout progress within both limits?
Answer to see the discussion.
MCQ-20A Deployment with four replicas starts a rolling update to a new image. The new pods' readiness probe on `/healthz` fails, so they never report Ready, and the Service selects them by label. What does the Service do with those new pods?
Answer to see the discussion.
MCQ-21A checkout pod has a 512Mi memory limit and a 256Mi request. Its average working set on dashboards sits near 180Mi, but the kubelet reports OOMKilled every few hours. A batch report inside the pod briefly adds about 400Mi for 5 seconds, and metrics are scraped every 60 seconds. Which change stops the kills?
Answer to see the discussion.
MCQ-22A latency-sensitive checkout pod has a CPU request of 250m and a CPU limit of 500m. Its node has six idle cores. During a burst, p99 latency rises by 180 ms and the container's `cpu.stat` `nr_throttled` counter climbs, while node CPU stays low. Which change stops the throttling and keeps the pod on its current node?
Answer to see the discussion.
MCQ-23A payments Service of type NodePort on a managed cluster must accept TCP connections from a fixed list of partner networks on the standard TLS port. Partner firewalls allow only that port outbound, and the team cannot change the API server flags. Which change gives partners one stable address on that port?
Answer to see the discussion.
MCQ-24An `orders-db` StatefulSet runs three replicas with a volumeClaimTemplate named `data` behind a headless Service. The storage class has `reclaimPolicy: Retain`, and the StatefulSet sets `persistentVolumeClaimRetentionPolicy` with `whenScaled: Delete` and `whenDeleted: Retain`. An operator scales it from 3 to 2 for maintenance, then back to 3 the next day. What does the new `orders-db-2` pod see?
Answer to see the discussion.
MCQ-25A payments API canary takes 1% of traffic, about 120 requests per minute, and the team must catch a jump in error rate from 1.0% to 3.0% within a 3-minute bake. A reviewer says the canary is too small to see that jump in the time allowed. Which change lets the bake catch it?
Answer to see the discussion.
MCQ-26A rolling deploy must add a new NOT NULL column to the `orders` table, and old app instances keep running during the rollout and insert rows without that column. Which order keeps every instance working through the change?
Answer to see the discussion.
MCQ-27A release pipeline runs a separate build job per environment. Each job runs npm install against package.json, which declares a caret range for a logging library, and no lockfile is committed. Staging passes its smoke tests on Monday. Production fails on Tuesday at startup with `TypeError: logger.child is not a function`, although both builds ran from the same commit. Which change makes production run the code staging actually tested?
Answer to see the discussion.
MCQ-28A deploy job on the main branch uses a CI variable `DEPLOY_TOKEN` that is already marked masked. A debug step runs `echo "$DEPLOY_TOKEN" | base64`, and on-call needs that encoded line kept so it can be matched to a ticket. The token still appears in the job log. Which change stops the leak without removing the debug line?
Answer to see the discussion.
MCQ-29A payments Deployment is synced by Argo CD from a Git repo with automated sync and selfHeal on. An engineer ran kubectl set image to ship a crash fix, and within minutes the controller reverted the image to the tag in Git. The team wants zero drift and Git kept as the source of truth. Which change keeps the fixed image running?
Answer to see the discussion.
MCQ-30An Auto Scaling group uses a simple scaling policy that adds two instances when a CPU alarm fires, and its launches take about 4 minutes to pass health checks. A flash spike fires the alarm, the group starts launching, and the alarm fires again 90 seconds later while those launches are still running, so the group ignores it. The team has not changed any cooldown setting. Which change lets the group respond to the second alarm in time for the spike?
Answer to see the discussion.
MCQ-31An API runs on an Auto Scaling group with target tracking on ASGAverageCPUUtilization at 50%. At peak, average CPU sits at 25% while p99 latency climbs from 300 ms to 2.1 s, because each request waits on a Postgres pool capped at 40 connections per instance, and every instance has all 40 in use. Which scaling change makes the group add instances at peak?
Answer to see the discussion.
MCQ-32A payments API runs across three availability zones at a peak of 2,100 requests per second, and each instance sustains 350 requests per second at its target load. The service must keep serving full peak after losing any one zone, and the group spreads instances evenly across zones. Which total instance count and per-zone placement meets that requirement?
Answer to see the discussion.
MCQ-33A product-price key in Redis has a 60-second TTL and is read by 800 requests per second across 20 app instances. When it expires, about 800 requests miss in the same second and each runs a 300 ms price query, saturating the database's 100-connection pool. Prices must never be served past expiry, so stale values are not acceptable. Which change stops the stampede?
Answer to see the discussion.
MCQ-34A profile service writes to a Postgres primary and reads from one asynchronous replica whose lag is 150 ms at the median and 1.4 s at p99. After a user saves a new shipping address, the confirmation page reads it back. The primary already runs at 75% CPU, so moving all reads off the replica is not an option. Which routing rule lets the user's own reads see the save?
Answer to see the discussion.
MCQ-35A DynamoDB table stores customer orders with partition key `order_id`, a sequential number issued at checkout. Peak ingest is 4,000 writes per second, each partition sustains 1,000 write capacity units per second, and writes are throttled. Support must list one customer's orders with a single Query, and no customer writes more than 5 orders per second. Which partition key change spreads the writes and keeps that listing a single Query?
Answer to see the discussion.
MCQ-36A payments API runs in three AZs of us-east-1 behind an ALB, with its PostgreSQL database on RDS Multi-AZ. After a full us-east-1 outage, the business needs writes accepted within 30 minutes and at most 5 minutes of committed payments lost. Which change covers a region failure?
Answer to see the discussion.
MCQ-37A payments database takes a snapshot every hour, and a failure strikes just before the next one is due. What is the worst-case window of writes lost?
Answer to see the discussion.
MCQ-38A payments PostgreSQL database on EBS is 1.2 TB and is restored from nightly snapshots in 6 hours against a 1-hour RTO. Drill logs show the restored instance's CPU at 4%, first reads of each block running near 25 MB/s, and a second restore of the same snapshot finishing in 40 minutes. Which change meets the RTO?
Answer to see the discussion.
MCQ-39A profile table runs active-active in us-east-1 and eu-west-1, with about 300 ms of replication lag and last-writer-wins conflict resolution on a wall-clock timestamp. A customer edits the shipping address in us-east-1 at 10:00:00.120 and in eu-west-1 at 10:00:00.180 real time, both from version 7 to 8, but the eu-west-1 host clock runs 150 ms behind. Which address does the record converge to?
Answer to see the discussion.
MCQ-40A three-node database cluster sends a heartbeat every 1000 ms and fails over the primary after a run of missed heartbeats. Network gaps between beats reach 4.6 s at p99.9 during backups, and each spike currently triggers a failover, so the cluster flaps every few minutes. The business requires failover within 5.5 s of a real primary crash. Which failover rule meets both requirements?
Answer to see the discussion.
MCQ-41A coordination cluster has five voting members spread across three availability zones, and the team wants it to keep electing a leader and accepting writes if any one zone is lost. Which placement of voting members across the zones is required to keep a majority after losing a zone?
Answer to see the discussion.
MCQ-42A checkout team's histogram `http_request_duration_seconds` has 12 buckets and labels `route` (40 values), `status` (5) and `region` (3), which gives 8,400 series counting `_sum` and `_count`. Someone added a `user_id` label, 2 million customers are active, and the ingestion budget allows 150,000 active series. Support needs one customer's latency history, and alerts need p99 per route and status. Which change keeps both within budget?
Answer to see the discussion.
MCQ-43A payments API runs on EC2 behind an Application Load Balancer. At 2 am the traffic is 300 requests per minute, and at peak it is 1,800. A CPU page fired 14 times last quarter with no user impact. In a recent incident a dependency refused connections, the targets returned 502s within 50 ms, and CPU stayed near 35%, so no page fired. Which alarm should replace the CPU page?
Answer to see the discussion.
MCQ-44A payments API has a 99.9% availability SLO over a rolling 30-day window. In that window it had one full outage of 25 minutes and three partial incidents of 8 minutes each, where half of requests failed. Counting each partial minute at half weight, how many minutes of full-outage budget remain?
Answer to see the discussion.
MCQ-45A payments API has a 99.9% availability SLO over a 30-day window. Errors run at a steady 0.2% of requests for two weeks, and the existing static alert on error ratio never fires. Which alert change catches this slow leak?
Answer to see the discussion.
MCQ-46A payments API starts returning 503s on about 40% of checkouts at 14:05, and nobody yet knows the cause. The senior engineer reading the logs is also the only one who can approve a rollback. Two responders are debugging in the same channel, and the status page is still blank. Which action should the incident commander take first?
Answer to see the discussion.
MCQ-47A log volume on an EC2 instance filled overnight because the CloudWatch agent process died at 02:10 and stopped publishing `disk_used_percent`. The alarm fires when the Average of `disk_used_percent` is above 85 for 3 of 3 datapoints at 5-minute periods, with missing data treated as notBreaching, so it stayed OK and nobody was paged. Which alarm change makes the page fire when the agent stops reporting?
Answer to see the discussion.
MCQ-48Checkout v2.8 shipped at 14:00. Its migration only added a nullable `orders.discount_code` column, and v2.8's new serializer writes that column. Since 14:02, 9% of checkouts return 500 from the serializer, while v2.7 still runs correctly against the migrated schema. Which action restores checkout first?
Answer to see the discussion.
MCQ-49A private subnet's app servers open many outbound connections to one external payments API through a NAT gateway. Clients see intermittent timeouts only at peak, while the gateway's connection count climbs. Which CloudWatch metric shows the NAT gateway failing to allocate a source port for a new connection?
Answer to see the discussion.
MCQ-50A payments API in VPC B reaches an on-prem reconciler over a site-to-site IPsec tunnel. The tunnel adds 60 bytes of ESP overhead to a 1500-byte outer path, so the inner MTU is 1438. The VPC's gateway sends TCP segments with the MSS negotiated at 1460 by the instances, and the on-prem firewall blocks ICMP type 3 code 4. Large POST bodies hang only from the instances, while the same bodies from on-prem succeed. Which change makes both directions work without relying on ICMP?
Answer to see the discussion.
MCQ-51A checkout pod in namespace payments calls api.partner.io, which has two dots, and orders.payments, which has one. The pod uses the default ndots of 5 and the client code cannot change this sprint. Both names must keep resolving through the search list, and each external call takes 1.2 s. Which pod setting cuts the external lookup time?
Answer to see the discussion.
MCQ-52A client in on-prem 192.168.10.0/24 opens TCP 8443 to an API at 10.0.5.10 over a site-to-site VPN, and the API's security group allows 8443 from that range. A capture on the API shows the SYN arriving and the SYN-ACK leaving. The on-prem firewall logs the SYN-ACK arriving on a second interface, not the VPN tunnel, and the client sends RST 2 ms later. Which change stops the reset?
Answer to see the discussion.
MCQ-53A client's TCP connect to `api.example.com:443` completes in 4 ms, but the TLS ClientHello then fails with a handshake_failure alert. Which layer holds the fault?
Answer to see the discussion.
MCQ-54An Auto Scaling group runs 10 instances in subnet 10.0.8.0/27, which also holds one internal ALB node, one NAT gateway and one interface endpoint. The group's max is 28 and the subnet's CIDR cannot change. Launches stop at 24 with InsufficientFreeAddressesInSubnet. Which change lets the group reach 28?
Answer to see the discussion.
MCQ-55A Site-to-Site VPN to a data centre uses BGP, and both tunnels are UP with the session established. The VGW has learned 192.168.20.0/24, and route propagation is enabled on the route tables for 10.0.2.0/24 and 10.0.3.0/24. Instances in 10.0.3.0/24 still cannot reach 192.168.20.0/24, and that table lists the prefix as a static blackhole route. Which change restores reachability?
Answer to see the discussion.
MCQ-56A team must move a 200 TB dataset from an on-prem data center to Amazon S3 within 14 days. The only path is one site-to-site VPN tunnel capped at 1.25 Gbps, with about 300 Mbps of live traffic already on it. Operators cap any link at 80% sustained utilisation. Which change finishes the copy inside the window?
Answer to see the discussion.
MCQ-57An order service in a private subnet accepts requests without credentials from callers on 10.20.0.0/16, and a security review says trust must not depend on network location. The service runs on EC2, and the team can change either the service code or the network layout this sprint. Which change makes trust depend on the caller's identity rather than where the request comes from?
Answer to see the discussion.
MCQ-58A batch job runs in two private subnets with no NAT gateway, one per AZ. The bucket policy denies any request not arriving through `vpce-0a1b2c3d`, and the S3 gateway endpoint is attached only to the route table of the first subnet. Jobs in the second subnet time out, then get AccessDenied. Which change restores reads from both subnets without traffic leaving AWS?
Answer to see the discussion.
MCQ-59A payments API runs one backend per availability zone in three AZs, and clients are spread evenly across the same three AZs. Load balancing picks a backend uniformly at random, and clients send 9,000 GB of request bytes a month. Cross-AZ transfer is billed at $0.01 per GB, charged once on the sending side. What is the monthly cross-AZ charge?
Answer to see the discussion.
MCQ-60A team holds a one-year Compute Savings Plan with a $12.00 per hour commitment, bought before the term began. A workload using $9.00 per hour of covered compute is scheduled for decommissioning in 4 months, and nothing else will take its usage. Over the remaining 8 months at 730 hours a month, what is the cost exposure from the commitment?
Answer to see the discussion.
MCQ-61A team runs a stateless image-resize worker pool and a single PostgreSQL primary that holds orders existing nowhere else, and both run on Spot Instances. Spot can reclaim any instance with two minutes' notice. Where should the PostgreSQL primary run?
Answer to see the discussion.
MCQ-62A shared AWS account spends $120,000 a month, and $48,000 of it shows as untagged in Cost Explorer. On Monday the team added a `team` tag to every resource in Terraform and activated it as a cost allocation tag in Billing. The Friday chargeback review needs the previous month, which closed before Monday, split by team. Which approach gives that split?
Answer to see the discussion.
MCQ-63A checkout service writes DEBUG logs to the S3 prefix `debug/` at 25 GB a day, and nothing expires them, so the bucket reached 9,125 GB in a year. Incident reviews need every debug line from the last 14 days, and the `audit/` prefix must keep its logs for 400 days. Which change cuts storage cost without losing any debug line from the last 14 days?
Answer to see the discussion.
MCQ-64A log bucket's lifecycle rule moves each object to S3 Standard-IA 30 days after creation and expires it 40 days after creation. Objects are read rarely, and the team wants the cheapest policy that still keeps every object for the stated window. For one object, which storage charge does the team pay?
Answer to see the discussion.
MCQ-65A team runs Kafka on three self-managed EC2 brokers, and the instance bill comes in lower than the quoted Amazon MSK price for the same three brokers. Which cost must the TCO comparison add to the self-managed side?
Answer to see the discussion.
MCQ-66A Cloud Engineer role's IAM Access Analyzer report, using a 90-day tracking window, flags three unused grants: `s3:DeleteObject` last used 400 days ago, `kms:Decrypt` used hourly by a nightly export, and `rds:RestoreDBInstanceFromDBSnapshot` last used 120 days ago. The team's disaster-recovery drill runs every 100 days and is next due in 5 days. Which change removes the excess access without breaking the next drill?
Answer to see the discussion.
MCQ-67A payments account keeps a break-glass path for use when the corporate identity provider is down. Policy requires console sign-in with a password and a hardware MFA token, and forbids phone-based MFA. During an outage CloudTrail shows ConsoleLogin events under one shared IAM user, so nobody can say who used it. Which change makes each console use attributable to a person?
Answer to see the discussion.
MCQ-68A deploy at 14:02 moved the production listener to a new target group running the release. At 14:06 `HTTPCode_Target_5XX_Count` on the new group rose from 0 to 1,900 per minute, `HTTPCode_ELB_5XX_Count` rose from 3 to 40 per minute, and `UnHealthyHostCount` is still 0. The old group is idle and a rollback is one listener change. What is the first action?
Answer to see the discussion.
MCQ-69A payments API runs in two availability zones behind a load balancer, with an equal share of instances in each zone. It must keep serving full peak traffic if either zone is lost. Which per-zone sizing rule meets that requirement?
Answer to see the discussion.
MCQ-70A payments API moved from port 8080 to 8443 on its EC2 targets. The instance security group allows 8443 from the ALB security group only, and security policy forbids any new inbound port on these instances. The target group health check still pins port 8080, and every target fails with Target.Timeout. Which change restores healthy targets?
Answer to see the discussion.
MCQ-71A payments pod's Dockerfile ends with `CMD sh -c "node server.js"`, and its Deployment sets terminationGracePeriodSeconds to 30 with no preStop hook. On scale-in the kubelet sends SIGTERM, and new requests keep arriving for the full 30 seconds. They are then reset when SIGKILL lands, and no shutdown line appears in the logs. Which change makes node close its server on SIGTERM?
Answer to see the discussion.
MCQ-72A payments-api pod's app container connects to Postgres once at startup and exits with code 1 on connection refused. The database accepts connections about 40 seconds after the pod is scheduled, and the app code cannot change this sprint. The pod enters CrashLoopBackOff, and no traffic may reach a pod before its database connection works. Which change stops the crash loop?
Answer to see the discussion.
MCQ-73A fleet of 40 Linux VMs must take a kernel security fix. The team wants every host to match one known-good image and to roll back by redeploying the previous image, with no hand-edited hosts. Which update method meets that requirement?
Answer to see the discussion.
MCQ-74A checkout Deployment runs 6 replicas, spread two per node across 3 nodes, and only one node is rebooted at a time. Each evicted pod takes about 90 seconds to pass readiness, and the node drain must finish within 60 seconds. The SLO requires at least 4 ready pods at every moment. Which PodDisruptionBudget setting meets both limits?
Answer to see the discussion.
MCQ-75An audit requires a CloudTrail record of every object read from the `payroll-exports` S3 bucket, including the caller's identity. The organization trail already logs read and write management events to a central bucket, yet the auditor finds no GetObject records for the last 30 days. Which change records those reads in CloudTrail?
Answer to see the discussion.
MCQ-76A payments API writes about 40 GB of application logs a day to a CloudWatch log group with 30-day retention. Audit requires 365 days of every day's logs, and CloudWatch storage at that length costs more than the budget allows. Which change keeps every day's logs for the full audit period within budget?
Answer to see the discussion.
MCQ-77Account A's VPC (10.1.0.0/16) is peered with VPC B (10.2.0.0/16), and VPC B is peered with VPC C (10.3.0.0/16). Those CIDRs cannot change, and instances in A get no route to C. Which change lets instances in A reach instances in C?
Answer to see the discussion.
MCQ-78A payments batch fails on a host in a PCI-scoped VPC, and the vendor's support engineer needs SSH to the bastion from their static egress address 203.0.113.42, which sits behind a corporate NAT that also serves 203.0.113.0/26. The bastion's security group is shared with a monitoring agent that must stay reachable from 10.40.0.0/16, the release freeze starts Friday 09:00, and the change approver is away until Monday. Which security group change lets the vendor in without widening PCI scope?
Answer to see the discussion.
MCQ-79You are primary on-call at 03:10 when a page fires for backlog on the `refund-worker` SQS queue, now 40,000 messages and growing 2,000 a minute. The workers log a visibility timeout of 30 seconds, but each refund takes about 45 seconds. The queue's Terraform belongs to the Payments team, and your runbook says you may restart workers but not change queue configuration. Which action should you take first?
Answer to see the discussion.
MCQ-80A payments API runs in two zones that each handle 1,000 requests in the same minute, and the SLO is p99 under 400 ms for that minute. Zone A's p99 is 520 ms, with 30 of its requests slower than 500 ms, and zone B's p99 is 180 ms, with none slower than 200 ms. A proposed cost cut would merge both zones into one pool, and the dashboard averages the two p99 values to judge it. What does the SLO see for the combined minute?
Answer to see the discussion.
MCQ-81A Cloud Engineer's Terraform pipeline applied a change straight to production, removing a security group rule and cutting checkout traffic for 22 minutes. The plan ran unreviewed because the pipeline had no approval step, and the change was authorised but wrong. Which follow-up item stops an unreviewed change from reaching production again?
Answer to see the discussion.
MCQ-82A 3-hour nightly ETL runs on 20 Spot workers and may start no earlier than 02:00 and must finish by 06:00. Spot reclaims average one per hour across the fleet, each reclaim loses work back to the last checkpoint, and a replacement worker needs 5 minutes to rejoin. The stakeholder wants the cheapest plan that still lands by 06:00. Which plan should you present?
Answer to see the discussion.
MCQ-83A coordination cluster accepts writes only while a majority of its voting members is up. The team has three availability zones and must keep writes going through the loss of a whole zone while one more member is down for patching. Which member placement meets that requirement with the fewest voting members?
Answer to see the discussion.
MCQ-84After a region restore, the payments app unit on an EC2 host starts before its database accepts connections and exits with 'connection refused'. The app unit has After=postgresql.service and Requires=postgresql.service. systemctl shows postgresql.service active (running) about 6 seconds after its start job begins, but crash recovery takes roughly 20 more seconds before Postgres accepts connections. Which change makes the app wait until the database is accepting connections?
Answer to see the discussion.
MCQ-85A three-tier payments app runs web instances in `sg-web`, app instances in `sg-app`, and a PostgreSQL instance in `sg-db`, all in one VPC. The web tier has been compromised, and the database must accept TCP 5432 only from the app tier. Which inbound rule on `sg-db` allows that?
Answer to see the discussion.
MCQ-86An Auto Scaling group with a 4-instance minimum runs behind an ALB whose target group checks /healthz every 10 seconds with a 2-check unhealthy threshold. After a bad release, 3 of 12 instances fail /healthz with 503s while staying InService, and fresh instances need about 200 seconds of cache warm-up. The group's grace period is 600 seconds and its health check type is EC2. Which change makes the group replace only the failing instances?
Answer to see the discussion.
MCQ-87An Auto Scaling group uses the ELB health check type with a health check grace period of 120 seconds. Each new instance needs about 200 seconds of cache warm-up before `/healthz` returns 200, so the group terminates each instance about two minutes after launch and starts a replacement, and the loop repeats. Which change stops the loop while still replacing instances that stay unhealthy?
Answer to see the discussion.
MCQ-88A checkout API runs on 4 instances behind an Application Load Balancer with duration-based stickiness set to 86400 seconds, because each shopping cart lives in its instance's memory. Carts expire after 30 minutes idle. Instance 1 runs at 70% CPU while the others sit near 15%, and a fifth instance added yesterday gets almost no traffic. Which stickiness setting spreads load while keeping each shopper's cart on one instance?
Answer to see the discussion.
MCQ-89A payments team reads a VPC ID from the network team's Terraform state through terraform_remote_state, and that state object also holds an RDS master password. Which change stops the payments team from being able to read the password?
Answer to see the discussion.
MCQ-90A Deployment runs 4 pods, each with a CPU request of 200m and a limit of 500m, and each pod averages 150m of CPU. An HPA targets 50% averageUtilization with minReplicas 2 and maxReplicas 10, and the nodes have 4 cores allocatable. Which replica count does the HPA compute on its next sync?
Answer to see the discussion.
MCQ-91One NAT gateway in us-east-1a serves three teams' private subnets in a shared account. Assume $0.045 per hour for the gateway, $0.045 per GB processed, a 730-hour month, and 6,000 GB from Team A, 2,000 GB from Team B and 2,000 GB from Team C. The hourly fee is split equally and processed data is split by byte share. What is Team A charged for the month?
Answer to see the discussion.
MCQ-92A Cloud Engineer role has two customer managed policies attached. Policy A allows s3:GetObject on arn:aws:s3:::payroll-exports/*. Policy B denies s3:GetObject on arn:aws:s3:::payroll-exports/2024/* with no conditions. No permissions boundary or session policy is set. A session of the role calls GetObject on payroll-exports/2024/june.csv. What does S3 return?
Answer to see the discussion.
MCQ-93A GitHub Actions deploy job pushes images and runs Terraform in account 111122223333. It authenticates with a static IAM user key kept in a repository secret, and the team will replace that key with an OIDC identity provider and a deploy role. The role must be assumable from this repository's main branch and from v* release tags, and a pull_request run from a fork must receive no credentials. Which condition on the role's trust policy meets that?
Answer to see the discussion.
MCQ-94A monitoring vendor's SaaS integration assumes a role in your account to read cost and usage data. Your role's trust policy currently names the vendor's account root as Principal with no Condition. Another team at the vendor, using the same account, could in principle call AssumeRole against your role. The vendor wants only its integration role to reach your account and wants each customer's requests separated. Which trust policy change does that?
Answer to see the discussion.
MCQ-95A self-managed cluster runs Kubernetes 1.29 with Flannel as its CNI and kube-proxy in iptables mode. A default-deny ingress NetworkPolicy in namespace payments selects the three api pods, and kubectl confirms the selector matches them. A test pod in namespace frontend still reaches the api pods on port 8080 with the policy applied. Which change makes the policy block that traffic?
Answer to see the discussion.
MCQ-96A product-price API reads through a write-through Redis cache in front of RDS for PostgreSQL. Analysts run UPDATE statements directly on the database during promotions, bypassing the app, so cached prices stay old until their key expires. Each price key gets a TTL with ±20% random jitter per key, as the app already sets. A committed direct update must be visible to reads within 5 seconds. The hot set is 800 keys, each read about once a second, and the database absorbs 300 misses per second. The schema cannot take triggers. Which base TTL meets both limits?
Answer to see the discussion.
MCQ-97A payments API runs blue (v3.1) and green (v3.2) behind one ALB listener on a shared Postgres database. Blue reads and writes orders.amount, a numeric in dollars, and green reads and writes orders.amount_cents, a bigint. Both versions stay live for 20 minutes during cutover, and the rollback objective is 5 minutes with no lost payments. Which schema change lets the listener flip back to blue safely?
Answer to see the discussion.
MCQ-98A PostgreSQL primary runs on a 2 TiB gp2 EBS volume serving 16 KB random reads and writes. It averages 2,800 IOPS, but the nightly reporting job needs 9,000 IOPS for 15 minutes, and the volume's burst balance is now zero, so p99 write latency passes 20 ms only during that window. The query plans are already tuned, and the team wants the job inside 20 ms at the lowest monthly storage cost. Which volume change does that?
Answer to see the discussion.
MCQ-99A Lambda function behind API Gateway writes payment rows to PostgreSQL with max_connections set to 100. Three other services hold 70 of those connections steady. During a flash sale the function logs 'FATAL: sorry, too many clients already', while its duration and init-duration metrics stay flat under 300 ms. The sale cannot reject any checkout, and the database cannot restart during it. Which change stops the errors?
Answer to see the discussion.
MCQ-100An SQS-triggered Lambda function has reserved concurrency of 20 and reads batches of 10 messages per invocation. Each invocation opens one PostgreSQL connection and holds it about 4 seconds per batch, whatever the batch size. Producers add about 70 messages a second, and the queue age is climbing. The database accepts 25 connections, and two other services hold 3 of them steadily. Which change clears the backlog without exceeding the connection limit?
Answer to see the discussion.