Cloud Stuff - Sheet1 Flashcards

1
Q

What are the different storage classes available in S3 and when would you use each one?

A

The different storage classes in S3 are Standard, Intelligent-Tiering, Standard-IA (Infrequent Access), One Zone-IA, Glacier, and Glacier Deep Archive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can you control access to objects stored in S3?

A

Access to objects stored in S3 can be controlled through bucket policies, access control lists (ACLs), and IAM (Identity and Access Management) policies. You can grant or deny permissions to users, groups, or AWS services based on specific criteria.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the benefits of using CloudFront for content delivery?

A

CloudFront improves website performance by reducing latency, increasing data transfer speeds, and offloading traffic from the origin server. It also provides enhanced security through features like DDoS protection and HTTPS support.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does CloudFront help improve website performance?

A

CloudFront improves website performance by caching content at edge locations. When a user requests content, CloudFront serves it from the nearest edge location rather than the origin server, reducing the time it takes to load the content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the key components of CloudFront?

A

Distribution, origin, edge locations, cache behavior

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you invalidate objects in CloudFront?

A

You can invalidate objects in CloudFront to remove them from cache before they expire. This can be done through the AWS Management Console, AWS CLI, or CloudFront API.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Route53 and what are its main functions?

A

Route53 is a scalable DNS (Domain Name System) web service provided by AWS. Its main functions include domain registration, DNS routing, health checking, and traffic management.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you create a new domain in Route53?

A

You can create a new domain in Route53 by logging into the AWS Management Console, navigating to Route53, selecting “Hosted zones”, and then clicking “Create Hosted Zone”. Enter the domain name and configure the required settings.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the difference between Route53’s Alias and CNAME records?

A

Alias records are used to map your domain name to AWS resources, like ELB, CloudFront distributions, or S3 buckets. They work like a CNAME record but provide additional functionality. CNAME records are used to map your domain name to another domain name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does Route53 handle DNS failover?

A

Route53 can monitor the health of your resources and automatically route traffic away from unhealthy resources to healthy ones. This is achieved using health checks, which periodically evaluate the health of your endpoints.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Can Route53 be used for routing traffic to resources outside of AWS?

A

Yes, Route53 can be used to route traffic to resources outside of AWS. You can create records that point to non-AWS resources by specifying their IP addresses or domain names.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is AWS Certificate Manager (ACM) and what is it used for?

A

AWS Certificate Manager is a service that manages SSL/TLS certificates for use with AWS services. It simplifies the process of provisioning, managing, and deploying public and private SSL/TLS certificates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you request and manage SSL/TLS certificates with ACM?

A

You can request SSL/TLS certificates in ACM by navigating to the ACM console, clicking “Request a certificate”, and following the wizard to verify domain ownership. Once issued, you can manage certificates by renewing, deleting, or modifying them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What types of SSL/TLS certificates does ACM support?

A

ACM supports both public and private SSL/TLS certificates. Public certificates can be used with external-facing websites and services, while private certificates are used for internal communications within an organization.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Can ACM certificates be used outside of AWS services like CloudFront and Elastic Load Balancing?

A

No, ACM certificates can only be used with AWS services that are integrated with ACM, such as CloudFront, ELB, API Gateway, and Elastic Beanstalk.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is API Gateway and what are its main features?

A

API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. Its main features include API creation, management, versioning, monitoring, and security.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How do you create an API in API Gateway?

A

To create an API in API Gateway, you can use the API Gateway console or API Gateway REST API. You define the API’s resources, methods, request/response models, and integration points with backend services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the purpose of API Gateway stages?

A

API Gateway stages are used to manage different versions or environments of your API (e.g., development, testing, production). Each stage has its own configuration and can be associated with different backend endpoints.

19
Q

How does API Gateway handle authentication and authorization?

A

API Gateway supports various methods for authentication and authorization, including IAM (Identity and Access Management), Lambda authorizers, Cognito user pools, and custom authorizers. These methods allow you to control access to your APIs based on user identity and permissions.

20
Q

Can API Gateway integrate with Lambda functions?

A

Yes, API Gateway can integrate directly with Lambda functions. This allows you to create serverless APIs where each endpoint is backed by a Lambda function. API Gateway automatically handles the invocation of the Lambda function based on incoming requests.

21
Q

What is AWS Lambda and what is it used for?

A

AWS Lambda is a serverless computing service that allows you to run code without provisioning or managing servers. It’s used for executing code in response to events, such as HTTP requests, changes in data, or triggers from other AWS services.

22
Q

How do you create a Lambda function?

A

You create a Lambda function by writing your code in the supported programming languages (e.g., Python, Node.js, Java), configuring the function’s triggers and permissions, and uploading the code to Lambda using the AWS Management Console, CLI, or SDK.

23
Q

What are the event sources for Lambda functions?

A

Event sources for Lambda functions include AWS services like S3, DynamoDB, SNS, SQS, API Gateway, and CloudWatch Events. You can also use custom events and triggers.

24
Q

How does Lambda pricing work?

A

Lambda pricing is based on the number of requests and the compute time consumed by your functions. You pay only for the compute time you use, rounded up to the nearest 100 milliseconds. There is also a free tier available.

25
Q

What is the maximum execution time for a Lambda function?

A

15 minutes

26
Q

What is DynamoDB and how does it differ from traditional relational databases?

A

DynamoDB is a fully managed NoSQL database service provided by AWS. It differs from traditional relational databases in that it is schema-less, horizontally scalable, and designed for high performance and scalability at any scale.

27
Q

What are the key features of DynamoDB?

A

Key features of DynamoDB include single-digit millisecond latency, automatic scaling, built-in security, backup and restore capabilities, and support for JSON and document data models.

28
Q

How does DynamoDB achieve scalability and high availability?

A

DynamoDB achieves scalability and high availability through partitioning and replication. Data is automatically partitioned across multiple servers to handle large workloads, and replicas are maintained across multiple Availability Zones for fault tolerance.

29
Q

What is the difference between provisioned and on-demand capacity modes in DynamoDB?

A

In provisioned capacity mode, you specify the read and write capacity units (RCUs and WCUs) for your tables in advance, and DynamoDB automatically scales to accommodate your workload. In on-demand mode, DynamoDB automatically scales capacity based on the workload, and you pay per request.

30
Q

How do you query data in DynamoDB?

A

You can query data in DynamoDB using the Query operation for items with the same partition key, or the Scan operation for filtering based on non-key attributes. You can also use global secondary indexes (GSIs) for querying data with different access patterns.

31
Q

What is Kubernetes and what is its role in container orchestration?

A

Kubernetes is an open-source container orchestration platform used for automating deployment, scaling, and management of containerized applications.

32
Q

How does Kubernetes manage containerized applications?

A

Kubernetes manages containerized applications by scheduling containers onto clusters of servers, maintaining desired state, scaling applications, and handling failovers and updates.

33
Q

What is the difference between a StatefulSet and a Deployment?

A

A Deployment manages stateless applications, whereas a StatefulSet manages stateful applications by providing stable, unique identifiers for each Pod.

34
Q

How does Kubernetes handle scaling and load balancing?

A

Kubernetes automatically scales applications by adjusting the number of Pods based on resource utilization and defined metrics. It performs load balancing by distributing traffic across Pods within a Service.

35
Q

How do you create a new Kubernetes cluster in Google Kubernetes Engine (GKE)?

A

You can create a new Kubernetes cluster in GKE using the Google Cloud Console or the gcloud command-line tool by specifying cluster configurations such as machine type, number of nodes, and version.

36
Q

What are Kubernetes namespaces and why are they used?

A

Kubernetes namespaces provide a way to organize and isolate resources within a cluster. They are used to divide cluster resources between multiple users, teams, or applications.

37
Q

What is a Kubernetes Deployment and how do you create one?

A

A Kubernetes Deployment manages a set of identical Pods, ensuring they are running and handling updates and rollbacks. You can create a Deployment by defining a YAML manifest with specifications for the Pod template and desired replicas.

38
Q

How do you expose a Kubernetes service externally?

A

You can expose a Kubernetes service externally by creating a Service of type LoadBalancer or NodePort, which will assign an external IP address to the Service to allow access from outside the cluster.

39
Q

How does Kubernetes handle rolling updates and rollbacks?

A

Kubernetes handles rolling updates by gradually updating Pods in a Deployment, ensuring zero downtime. Rollbacks are achieved by reverting to a previous version of the Deployment configuration, which triggers a new rolling update.

40
Q

What is Google Cloud Shell and how is it used?

A

Google Cloud Shell is a browser-based command-line interface provided by Google Cloud Platform. It provides access to a Linux shell with preinstalled tools and resources for managing GCP services.

41
Q

How do you access Cloud Shell?

A

Cloud Shell can be accessed directly from the Google Cloud Console by clicking on the Cloud Shell icon in the top right corner.

42
Q

What are some common use cases for Cloud Shell?

A

Common use cases for Cloud Shell include managing GCP resources, running scripts, interacting with APIs, and performing development tasks.

43
Q

Can you install additional software in Cloud Shell?

A

Yes, you can install additional software in Cloud Shell using package managers like apt-get or by downloading and compiling from source. However, changes made to the environment are temporary and will be lost when the session ends.

44
Q

How does Cloud Shell handle persistent storage?

A

Cloud Shell provides a home directory (/home) with 5GB of persistent storage per user. Files stored in this directory persist across sessions and are accessible from any Cloud Shell instance.