1. Home
  2. Subjects
  3. Computer Science MCQs
  4. Cloud Computing

Cloud Computing MCQs

85 multiple choice questions with answers in Computer Science MCQs.

This page collects Cloud Computing multiple-choice questions on IaaS, PaaS and SaaS, virtualisation, deployment models and major cloud services. Answers and explanations are shown with every question. A good fit for computer science students and interview preparation.

Showing 1–25 of 85

A CloudFront distribution has a default TTL of 86400 seconds and a minimum TTL of 0. The origin sends Cache-Control: max-age=300. For how long does CloudFront cache the object?

  1. 86400 seconds, because the distribution default takes precedence always
  2. 0 seconds, because the minimum TTL allows revalidation on every request
  3. 300 seconds, but only when the viewer sends no conditional headers
  4. 300 seconds, because the origin header overrides the default TTL value Correct answer
MCQSEXAM Read explanation

A Route 53 failover routing policy has primary and secondary records configured. What causes traffic to switch to the secondary?

  1. A latency increase above the threshold set in the routing policy
  2. The TTL of the primary record expiring without a refresh from the zone
  3. The health check on the primary record failing its configured checks Correct answer
  4. The primary record being deleted from the hosted zone by an operator
MCQSEXAM Read explanation

A private subnet needs outbound internet access for software updates but must not accept inbound connections. What is required?

  1. A NAT gateway inside the private subnet with an elastic IP attached to it
  2. A VPC endpoint for the internet that proxies every outbound HTTPS request
  3. A NAT gateway in a public subnet, plus a route in the private route table Correct answer
  4. An internet gateway attached to the private subnet's own route table
MCQSEXAM Read explanation

An API Gateway REST API integrates with a Lambda function that takes 40 seconds to finish. What does the client receive?

  1. A 502 error, because Lambda rejects runs longer than 30 seconds
  2. A 504 only if reserved concurrency has been configured on the function
  3. A 504 timeout, because the integration timeout is capped at 29 seconds Correct answer
  4. A 200 response after 40 seconds, since the gateway waits for the backend
MCQSEXAM Read explanation

A presigned S3 URL was generated using credentials from an IAM role that is deleted shortly afterwards. What happens when the URL is used before its expiry time?

  1. It works until expiry, since the signature alone authorises the request
  2. It works only for HEAD requests, because GET needs live credentials
  3. It fails only if the object's ETag changes after the URL was generated
  4. It fails, because the signing credentials must still be valid when used Correct answer
MCQSEXAM Read explanation

A user's identity policy allows s3:GetObject on a bucket, but the bucket policy contains an explicit Deny for that user. What is the result of the request?

  1. Denied only if the bucket policy also lists that user in a NotPrincipal element
  2. Allowed, because both statements are evaluated and the allow matches first
  3. Denied, because an explicit deny anywhere in IAM always overrides any allow Correct answer
  4. Allowed, because identity policies take precedence over resource policies
MCQSEXAM Read explanation

A workload streams 10 TB a month out to the internet while ingesting the same volume. Which cost dominates, and why?

  1. Egress dominates, because data transferred out to the internet is billed and inbound is free Correct answer
  2. Ingress dominates, because inbound data is billed per gigabyte while outbound egress is free of charge
  3. They cost the same, because both directions are billed at the identical per-gigabyte rate today
  4. Neither is billed, because traffic remains free while it stays within a single AWS region
MCQSEXAM Read explanation

A bucket replicates to another region with S3 Cross-Region Replication. What recovery point objective does the replica give?

  1. The bucket's versioning window, because the replica retains every prior object version written
  2. Near-zero but not zero, because replication is asynchronous and may lag by seconds or minutes Correct answer
  3. Exactly zero, because replication is synchronous and commits the object to both regions together
  4. Zero for new objects only, since existing objects are copied synchronously when it is enabled
MCQSEXAM Read explanation

A table is written with 10 items per second, each item 6 KB in size. How many write capacity units are needed?

  1. 10, because DynamoDB charges one write unit per item regardless of the individual item size
  2. 30, because each item rounds up to three units and the remaining size is ignored here
  3. 120, because writes are billed twice over when the table uses eventual consistency
  4. 60, because each 6 KB item consumes six write units and ten are written per second Correct answer
MCQSEXAM Read explanation

A VPC subnet is created with CIDR 10.0.4.0/24 in AWS. How many IP addresses can actually be assigned to resources?

  1. 254, because only the network and broadcast addresses are unusable inside a subnet here
  2. 250, because AWS reserves six addresses once the VPC router is also counted
  3. 251, because AWS reserves five addresses in every subnet for networking functions Correct answer
  4. 256, because a /24 mask leaves eight host bits with no addresses reserved
MCQSEXAM Read explanation

In KMS envelope encryption, what is the role of the data key?

  1. It replaces the customer master key for all requests, sharply reducing KMS API call volume
  2. It is a plaintext credential that must be rotated manually with every object written
  3. It encrypts the data locally, and is itself stored encrypted under a KMS customer key Correct answer
  4. It encrypts the customer master key, so the master key never leaves the KMS service
MCQSEXAM Read explanation

A static site on CloudFront must serve a corrected file immediately everywhere. Which approach avoids stale edge copies most reliably?

  1. Issue an invalidation for /* first, then upload the fixed file to the same key
  2. Set the origin's Cache-Control max-age to zero, which flushes all existing edge copies at once
  3. Reduce the default TTL to 60 seconds, which bounds how long an edge copy is stale
  4. Version the object key, such as app-v2.js, so the CDN path itself is new and uncached Correct answer
MCQSEXAM Read explanation

What does setting reserved concurrency on a Lambda function actually do?

  1. It raises the function's default timeout to match the reserved concurrency value in seconds
  2. It provisions dedicated EC2 capacity that is billed whether or not it is invoked
  3. It carves out and caps concurrency for that function, throttling it beyond the limit Correct answer
  4. It guarantees the function never cold-starts, by keeping the reserved pool warm
MCQSEXAM Read explanation

A consumer receives an SQS message, then its visibility timeout expires before it is deleted. What happens next?

  1. The message stays invisible until the queue's retention period eventually expires
  2. The message becomes visible again and another consumer may process it a second time Correct answer
  3. The message is permanently deleted, because the expired timeout counts as an acknowledgement
  4. The message moves to the dead-letter queue immediately, since the receive has failed
MCQSEXAM Read explanation

An object archived to S3 Glacier Flexible Retrieval must be readable within minutes. Which retrieval tier applies and how is it priced?

  1. Instant, which is the only tier available to Glacier Flexible Retrieval archive objects
  2. Expedited, which typically returns data in 1-5 minutes and is the most expensive tier Correct answer
  3. Bulk, which returns data within 5-12 hours and is the cheapest of the available tiers
  4. Standard, which returns data in 3-5 hours and costs the same as expedited retrieval
MCQSEXAM Read explanation

How does an RDS Multi-AZ standby differ from a read replica in normal operation?

  1. Both are synchronous copies, but only the standby can serve read queries under load
  2. Both are asynchronous copies, and either can be promoted to primary without any data loss at all
  3. The standby is synchronous and not readable, while a replica is asynchronous and queryable Correct answer
  4. The standby is asynchronous and readable, while a replica is synchronous and write-only
MCQSEXAM Read explanation

Teacher or blogger? Put this quiz on your website

Free Cloud Computing MCQs quiz with answers for your school site, academy page or blog. Copy one line of code – works on WordPress and Blogger.

Get the quiz widget

All 85 Cloud Computing questions

Show the full list of questions in this topic