AWS Architecture – Request Flow and Services: A Brief Introduction

 

1. Route 53 – DNS

When you send a request, for example, https://www.example.com, Route 53 can changes the domain name into an IP address. It is an AWS DNS service that helps direct users to the correct application endpoint.

2. CloudFront – CDN

CloudFront is a Content Delivery Network (CDN). It caches content at locations closer to users, helping deliver content faster and reduce latency. It is commonly used for images, videos, CSS, JavaScript, and other web content.

3. API Gateway

API Gateway acts as an entry point for APIs. It handles authentication and authorization, rate limiting, request routing to the right service, and request/response transformations.

4. Load Balancer

Once the API Gateway determines which backend service should handle the request, and the request reaches the backend service, it may go through a Load Balancer. The Load Balancer distributes incoming traffic among multiple healthy backend instances to improve availability and performance.

5. Backend Services

EC2: EC2 is a virtual machine in the cloud. It provides computing resources such as CPU, RAM, networking, and storage (typically attached through EBS). We can install an operating system and the necessary tools to run our applications.

ECS: ECS (Elastic Container Service) is a managed container orchestration service. It helps deploy, manage, and scale Docker containers. AWS also provides EKS, which is a managed Kubernetes service. ECS integrates with IAM, CloudWatch, and Elastic Load Balancing. We can use AWS X-Ray to trace requests as they pass through multiple services.

Lambda: Lambda is a serverless compute service. We provide our application code, and AWS runs it automatically when a specific event or trigger occurs. We don't need to manage the underlying servers. It is commonly used for event-driven processing and background tasks.

SQS: SQS (Simple Queue Service) is a message queuing service that allows applications to communicate asynchronously. It stores messages in a queue until an application or server processes them.

  • Standard Queue: Provides high throughput and supports large volumes of messages. Message ordering is not guaranteed, and duplicate delivery is possible.
  • FIFO Queue: Processes messages in the order they are sent, first in-first out, within a message group and supports message deduplication.

Bedrock: If an application needs to use Large Language Models (LLMs), it can call Amazon Bedrock, which provides access to various foundation models through APIs. SageMaker is a separate AWS service used to build, train, and deploy custom machine learning models.

6. Database Services

RDS: Amazon RDS is a managed relational database service. It supports popular database engines such as MySQL, PostgreSQL, Oracle, SQL Server, MariaDB, and Db2. Data is stored in tables with rows and columns, and relationships can be maintained using keys and joins.

Aurora: Amazon Aurora is an AWS relational database engine compatible with MySQL and PostgreSQL. It is designed for high performance, availability, and scalability.

DynamoDB: DynamoDB is a fully managed NoSQL database. It is highly scalable and stores data as key-value pairs and document data. Unlike relational databases, its data types is flexible, and different items can have different attributes.

DynamoDB stores data as key-value pairs and supports nested JSON-like structures such as Map, List, String Set, Number Set, etc. It does not store data as plain JSON files.

Other supported data types include String, Number, Binary, Boolean, Null, and Binary Set.

RDS / Aurora: Primarily use vertical scaling (increasing CPU, RAM, etc.) and support structured relational data. They also support horizontal read scaling through read replicas.

DynamoDB: Uses horizontal scaling and is highly scalable. It supports flexible, semi-structured or unstructured data using key-value and document data models.

Note: another example of nosql database: MongoDB

7. S3 – Object Storage

Amazon S3 is an object storage service. It stores objects such as images, videos, audio files, documents, and backups in buckets. It is commonly used to store static files and application data.

8. CloudWatch – Monitoring

CloudWatch is a monitoring service for AWS resources and applications such as EC2, Lambda, ECS, and SQS. It collects logs and metrics and allows us to create alarms. For example, it can send notifications when CPU utilization exceeds a specified threshold.

Amazon CloudWatch can trigger sending email notification when integrated with Amazon SNS (Simple Notification Service).

9. IAM – Identity and Access Management

IAM manages authentication and authorization in AWS. It controls who can access AWS resources and what actions they are allowed to perform through users, roles, and policies.

10. CI/CD Pipeline and CodeDeploy

CI/CD automates the software delivery process. It helps build, test, and deploy application code or Docker images. AWS CodePipeline orchestrates the pipeline, CodeBuild handles building and testing, and CodeDeploy helps automate deployments.

 

AEM – Adobe Experience manager, Interview questions and answers - Part 3

1. What is MSM in AEM?

MSM stands for Multi Site Manager, and it helps manage multiple related websites by maintaining a common structure and content, from the blueprint, while allowing country-specific or language-specific changes.

Example:

A multinational company may have websites for different countries. These websites can share common content and structure, but have country-specific information.

For example:

  • USA website displays prices in US Dollars.
  • UK website displays prices in British Pounds.
  • European website displays prices in Euros.

 

2. What is a Live Copy in AEM?

A Live Copy is a copy of a Blueprint or source website that maintains a relationship with the original content.

For example, a multinational company may have a master website as blueprint and create Live Copies for the USA, UK, and European websites.

The Live Copies share common content and structure from the Blueprint, but they can also contain country-specific or language-specific content.

If any changes are made to the Blueprint, those changes can be synchronized with the Live Copies using the Rollout process.

 

3. What is AEM Replication?

AEM Replication is the process of transferring content from one AEM instance/environment to another.

For example, an Author can replicate a page from the Author instance to the Publish instance. Replication can also be used to deactivate (unpublish) content from the Publish instance.

A QA validates and verifies the contents in the publish instance through replication when a page is published or unpublished.

 

4.  What is Cache Invalidation?

Cache invalidation is the process of clearing or updating cached content so that users receive the latest contents on the webpage.

Example:

Suppose a product discount changes from 10% to 20%. If the Dispatcher cache is not invalidated, users might still see the old 10% discount.

Cache invalidation ensures that the outdated cached content is removed so that users can see the updated 20% discount.

 

5. What is the difference between Dispatcher Cache and Browser Cache?

Dispatcher Cache:

Dispatcher Cache is on the server side, ie, it is shored on the server side. It reduces requests to the AEM Publish instance by serving content directly from the Dispatcher cache whenever a valid cached response is available.

If the requested content is not available in the cache, the request is forwarded to the Publish instance. This cache can be cleared through Dispatcher cache invalidation.

Browser Cache:

Browser Cache is on the user's side, stored in the user's local browser. It stores resources such as images, CSS, JavaScript files, and other website resources.

It reduces repeated requests to the server by reusing cached resources whenever they are still valid. This cache can be cleared through the browser settings or developer tools and is specific to the user's browser.

 

6. What is Impersonation in AEM?

It is the process of one user acting as another user with the second user's permissions and access rights.

It is used when the first user needs to access the system from the second user's perspective for troubleshooting, debugging, or investigation.

Example: An Admin can impersonate an Author to see which pages, components, and features the Author can access, in order to investigate or troubleshoot issues.

 

7. What is a Sitemap in AEM?

A sitemap is an XML file that contains the important URLs of a website. It helps search engines like Google discover and crawl the website's pages.

Example:

https://example.com/sitemap.xml

This XML file might contain the following URLs:

  • https://example.com/laptops
  • https://example.com/mobiles
  • https://example.com/monitors

When a search engine crawls the website, it can use the sitemap to discover these pages.

A QA might test:

- The site map is available or exists

- The sitemap contains the correct URLs.

- The URLs work as expected.

- The Unpublished or deleted pages are removed.

- No pages return 404 error.

- If any URL is changed and if the user enters the old URL, it should take to the new URL.

 

8. What is a Canonical URL?

A Canonical URL is the preferred URL of a webpage that tells search engines which URL to consider as the primary version when multiple URLs have similar or duplicate content.

Example:

The same Dell laptop page might be accessible through:

In this case, the website can specify https://example.com/laptops/dell as the Canonical URL.

This helps search engines avoid duplicate content issues and confusion.

Note: the Canonical URL is the recommended URL for the search engine. But the search engine might select the recommended URL or a different URL.