ui exam Flashcards
Which of the following protocols is considered a connection oriented protocol?
Transmission Control
Protocol (TCP)
In terms of a web application, what is meant by the term ‘scalability’?
its ability to handle a growing amount of user traffic, data, or workload without experiencing significant performance degradation
What does the ‘404’ status code in HTTP indicate?
the server cannot find the requested resource
Which protocol is used to transfer web pages from servers to browsers?
HyperText Transfer Protocol
Which of the following does an HTTP cookie do?
track, personalize and save information about each user’s session.
What does the ‘S’ stand for in HTTPS
Secure
In an MVC (Model-View-Controller) architecture, what is the role of the ‘Controller’?
handles request flow, never handles data logic
What does DNS stand for in terms of the Internet and the World Wide Web?
Domain Name System
How are IPv4 addresses expressed?
typically written in decimal digits, formatted as four 8-bit fields that are separated by periods 192.0.2.146
In AWS S3, what does S3 stand for?
Simple Storage Service,
Which of the following are pricing model for AWS EC2 instances?
on demand, savings plan, spot instances
How would you handle a sudden increase in traffic to your AWS hosted website?
Content Delivery Network (CDN)
Which service would you use to connect your on-premises data center to the AWS Cloud securely?
AWS Direct Connect
Internet Protocol (IP)
is the fundamental protocol defining the Internet
* Subdivides information into packets
* Responsible for routing those packets over networks
* IP address is typically : 32-bit number (IPv4) or 128-bit (IPv6)
Hypertext Transfer Protocol (HTTP)—
a communications protocol used to send
information over the web
* HTTP is built on top of TCP
IP source software creates packets representing the data
Header : source and destination IP addresses, length of data, sequencing info, etc.
* Data itself – the payload
The World Wide Web
huge client-server system with millions of clients
and Web servers for accessing linked documents
* Comprises applications and protocols that run on top of the Internet
* Web Servers host thousands of hyperlinked documents or applications that dynamically
generate hyperlinked documents
* Browsers provide an easy-to-use interface for accessing and presenting those documents
GET
request to return a document to the client
HTTP POST
POST sends data to a specific URI and expects the resource at that
URI to handle the request
Head
request to return the header of the document
HTTP PUT
PUT puts a file or resource at a specific Uniform Resource Identifier
(URI)
delete
request to delete the document
URI
Uniform Resource Identifier
Amazon RDS
(Relational Database Service): RDS offers managed database
services for popular database engines like MySQL, PostgreSQL, Oracle, and
Microsoft SQL Server.
Amazon EC2
(Elastic Compute Cloud): EC2 provides virtual servers in the
cloud, allowing users to easily scale their computing capacity up or down
based on demand.
Amazon S3
(Simple Storage Service): S3 is a scalable object storage service
that allows users to store and retrieve data, such as files, images, and
videos, in the cloud.
Amazon DynamoDB:
DynamoDB is a fully managed NoSQL database service
that provides low-latency and scalable storage for applications that require
flexible and fast performance.
Some key services and features offered by AWS include:
Identity and Access Management (IAM): With AWS IAM, you can specify who or
what can access services and resources in AWS, centrally managed fine-grained
access control.
* Virtual Private Cloud(VPC): Networking service with security group.
* Lambda: Lambda is a serverless computing service that lets you run your code
without provisioning or managing servers, based on event-driven architectures.
* API Gateway – to create RESTful APIs
* Route 53 – DNS service in AWS, allows to register domain names
* CloudFormation – infrastructure as code – templatized configuration of collection
of AWS resources
* Amazon Sagemaker: a fully managed machine learning service that enables
developers to build, train, and deploy machine learning models at scale.
Amazon VPC (Virtual Private Cloud)
Amazon VPC is virtual private network within the
public AWS cloud that are logically isolated from
the rest of the AWS Cloud
* Resembles a traditional network in data centers
* Enables you to launch AWS resources, such as EC2
instances into a virtual network.
* A VPC is an AWS region specific, comprised of one
or more subnets created in individual availability
zones (AZs)
* After you create a VPC, you can create subnets
* A VPC is associated with a CIDR (Classless InterDomain Routing) range, which is essentially an IP
address range, such as 10.0.0.0/16
Amazon Elastic Compute Cloud (EC2)
Amazon EC2 is used to create virtual machines called EC2 Instances in AWS
* An EC2 instance provides a virtual computing environment with memory and process running
together
* You can use Amazon EC2 to launch virtual servers of different types, configure security and
networking, and manage storage.
* Amazon Machine Images (AMIs) – Preconfigured templates for EC2 instances that
package the bits needed for the server (including the operating system and
additional software)
* Instance Types – Various configurations of CPU, memory, storage, and networking
capacity for your instances
Features of Amazon EC2
Persistent Storage Volumes – Persistent storage volumes for your data
using Amazon Elastic Block Store (Amazon EBS)
* Security Group – An instance-level firewall that enables you to specify
the protocols, ports, and source IP ranges that can reach your instances
* Elastic IP addresses – Static IPv4 addresses for dynamic cloud
computing, known as Elastic IP addresses
* Metadata – Metadata, known as tags, that you can create and assign to
your Amazon EC2 resources
rds key features
Key features and benefits of Amazon RDS include:
* Managed Service: Amazon RDS handles administrative tasks such as
hardware provisioning, database setup, software patching, backups, and
automatic software upgrades.
* This allows developers to focus on their applications rather than managing the
underlying infrastructure.
* Scalability: Amazon RDS enables you to scale your database resources up
or down based on your application’s needs.
* You can easily adjust compute and storage capacity to handle changes in traffic,
ensuring performance and availability.
* High Availability: Amazon RDS provides built-in features for high availability,
including automated backups, automated multi-AZ (availability zone)
deployments, and automated failover.
* These features help minimize downtime and ensure data durability.
Amazon S3 (Simple Storage Service)
Amazon S3 provides durable, highly-scalable object storage
* Designed for 99.999999999% durability and 99.99% availability
* Amazon S3 stores data as objects and objects are stored within folders
that are called “buckets”
Which HTML element is used to include external JavaScript files?
<script> </script>
What is the primary purpose of the <head> section in an HTML document?
contains machine-readable information (metadata) about the document, like its title, scripts, and style sheets.
How can you specify that an input field must be filled out before submitting the form?
required
Which HTML tag allows you to associate a label with a form element?
<label></label>
Which DOCTYPE declaration is suitable for HTML5 documents?
<! DOCTYPE html>
How can you specify that an HTML form should NOT validate the input when submitted?
formnovalidate
self-validating input type in HTML5?
email date color datetime datetime-local month week tel url number range
Which attribute in HTML5 allows you to offer suggestions as the user types in an input field?
autocomplete
The <a> tag in HTML is primarily used to?</a>
link from one page to another
In an HTML table, which element represents a header cell?
<th>
</th>
placeholder Attribute
Allows you to place temporary text in a text field.
input Type search
provides a search field
input Type email
The email input type enables the user to enter an e-mail address
* Currently, all of the browsers display a text field.
* HTML5 just validates that the e-mail address is in the proper format, not whether an
e-mail address entered by the user actually exists
input Type url
Input type url enables the user to enter a URL.
* The element is rendered as a text field, and the browser checks for the
proper format
* HTML5 does not check whether the URL entered is correct/valid.
input Type number
Enables the user to enter a numerical value
* Browsers render a spinner control for adjusting the number between min and max.
* The step attribute determines the increment in which the numbers increase.
* The value attribute sets the initial value displayed in the form
* The spinner control includes only the valid numbers.
* If the user attempts to enter an invalid value by typing in the text field, a callout pointing to the number
input element will instruct the user to enter a valid value.
input Type range
Input type range appears as a slider control in browsers.
* You can set the minimum and maximum and specify a value.
* Inherently self-validating because the user is unable to move the slider outside the
bounds of the minimum or maximum value.
* A range slider with a value attribute of 10 as rendered in Chrome
input Type date
Enables the user to enter a date in the form yyyy-mm-dd.
* The start date is the current date.
* Most browsers display a calendar from which you can choose a date.
* Inherently self-validating when rendered in the browser
input Type tel
Enables the user to enter a telephone number
* HTML5 does not self validate the tel input type, but you can add a pattern attribute that
uses a regular expression to determine whether the number is in the format: (555) 555-
5555
* When the user enters a phone number in the wrong format, a callout appears requesting
the proper format, pointing to the tel input element
input Type time
Enables the user to enter time - an hour, minute, seconds and fraction of
second
* The HTML5 specification indicates that a time must have two digits
representing the hour, followed by a colon (:) and two digits representing
the minute.
Datalist
provides input options for a text input element.
How do you select all
elements inside a
element in CSS?
The * selector
Which CSS property is used to control the text alignment of a document?
text-align property
Cascading Style Sheets (CSS)
While HTML focuses on the content and structure of the
information that you to render on your web pages, CSS enable you
to control the appearance (look and feel) of your content on the
webpages
* CSS is a styling language. It is used to describe the presentation of
a document written in HTML
* CSS provides a wide range of styling properties to control the
visual aspects of HTML elements
CSS lets you define the rules by specifying styles that you can apply to a
particular HTML element or a group of HTML elements
* CSS is a rule-based language
* You can define colors, fonts, sizes, margins, padding, borders,
backgrounds, and other visual properties
* to create visually appealing and consistent designs across multiple web
pages.
* The goal here is to separate the content of a web page from its
presentation, making it easier to maintain and update the design of the
website.
Inline Style
Used to declare a style for individual html elements by using the
style attribute in the element’s start tag
* The value of the style attribute is ‘styles’ to be used in the
following format: style =“property-name: value”
* For example, <p style=“font-size: 20pt”> This is my paragraph. </p> )
* If the value of the style attribute include multiple properties, then
multiple property declarations are separated by a semicolon (;)
Embedded Style Sheets
Embedded style sheets allow you to define styles for the whole
html document in one place as a stylesheet.
* Style sheet information is embedded into an html document
using the <style> element inside the <head> section of your
HTML document.
* Selectors (pattern matching) are used to apply styles to HTML
elements throughout the entire document</style>
<style>
element’s type attribute specifies the MIME type of the style sheet to be type=text/css * MIME type refers a specific encoding format</style>
How can you apply CSS styles to a specific element using its ID?
write a hash (#) character, followed by the id of the element.
Which CSS property is used to control the space between the border of a box and the content within it?
padding
Padding
– is the space between the content and the border. Padding is
applied to the inside of your element hence effecting how far your element’s
content is away from the border.
Margin
is the space outside the border. Margin is applied to the outside of
your element hence effecting how far your element is away from other
elements.