.Net Interview question
- Get link
- X
- Other Apps
.NET Questions
- .Net core vs .Net standard
- Web api vs rest api
Kube over dockers swarm Design patterns Oauth vs Iopenconnect Mongo save vs insert TPL(Task) vs aync await vs thread Microservices vs SOA AccessToken vs refreshToken, where to store refreshToken Transient - where to use DI Vs IOC vs control inversion Rest constraints Middleware vs httpmodule vs Httphandler Azure key vault pre deployment gate/approval event grid vs service bus vs event hub page blob, append blob /block blob blob/table/queue/file/disks queue vs service bus MOQs Association(Composition,aggregation), Generalization(Inheritance) Generics - (T)Convert.ChangeType(emp, typeof(T)) Service workers .Net core CLR SOLID Dead letter queue Role based Authorization in rest APIs Eventual consistency Vnet/Private/public network Limiting access to resources on Azure Paas naming of rest apis protocol accept header in rest Methods brain tree, safe charge, Amex - Payment gateways GC how to decide the microservices Unmanaged objects SQL vs NoSQL Func, Action and Predicate are generic inbuilt delegates present in System namespace How to identify a value type public prop vs field Can delegates work across assemblies dynamic keywords readonly vs const IValidatableObject for custom model validation 2/Multi factor authentication Access logs of kubernates What are the different services within Kubernetes scoped vs transient Repository pattern in entity framework Event sourcing design pattern Why containers Immutable classes product life cycle Religiency-Circuit breaker orchestrator service vs choreographer Transaction in microservices Pattern: API Composition - Fetch data from n MS for e.g. API gateway Pattern: CQRS - Fetch data from n MS Pattern: Event sourcing Pattern - transaction-log-tailing Pattern: Saga synchronous transaction in MS Service mesh Azure ARM Templates Azure Monitoring tools Throttling union vs unionwith concat vs union zip nullable reference types library.namespace.class entity vs nhibernate can we cross join table valued functions with table Any vs Exists concurrentBag concurrentQueue Semaphors Interlocked Mutex Monitor https://sensu.io/blog/kubernetes-vs-docker-swarm https://stackoverflow.com/questions/16209681/what-is-the-difference-between-save-and-insert-in-mongo-db#:~:text=Save%20Vs%20Insert%20%3A&text=For%20save%2C%20If%20the%20document,If%20not%2C%20it%20will%20insert.&text=If%20a%20document%20exists%20with,the%20fields%20from%20the%20document. https://dotnettutorials.net/lesson/introduction-to-inversion-of-control/ https://restfulapi.net/rest-architectural-constraints/ https://www.c-sharpcorner.com/article/comparison-of-httphandler-and-httpmodule-with-middleware/ https://docs.microsoft.com/en-us/azure/event-grid/compare-messaging-services https://docs.microsoft.com/en-us/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs https://docs.microsoft.com/en-us/azure/storage/common/storage-introduction https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-azure-and-service-bus-queues-compared-contrasted Mocking dependencies https://www.visual-paradigm.com/guide/uml-unified-modeling-language/uml-aggregation-vs-composition/#:~:text=Aggregation%20implies%20a%20relationship%20where,)%20and%20Student%20(child).&text=Composition%20implies%20a%20relationship%20where,)%20and%20Room%20(child). https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/generics/generics-and-reflection https://www.geeksforgeeks.org/common-language-runtime-clr-in-c-sharp/ https://www.c-sharpcorner.com/UploadFile/damubetha/solid-principles-in-C-Sharp/ https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-dead-letter-queues lowercase, hyphen, heirarchy https://www.red-gate.com/products/dotnet-development/ants-memory-profiler/learning-memory-management/memory-management-fundamentals https://microservices.io/patterns/microservices.html https://www.tutorialsteacher.com/csharp/csharp-extension-method Obj.GetType().IsValueType(), where T: Struct https://docs.microsoft.com/en-us/azure/aks/view-master-logs#:~:text=View%20collected%20logs,-It%20may%20take&text=In%20the%20Azure%20portal%2C%20navigate,Queries%20window%20if%20it%20appears.&text=In%20this%20example%2C%20the%20query,in%20kube%2Daudit%2Dadmin. https://www.simplilearn.com/tutorials/kubernetes-tutorial/kubernetes-interview-questions https://docs.microsoft.com/en-us/virtualization/windowscontainers/about/containers-vs-vm https://www.c-sharpcorner.com/article/all-about-c-sharp-immutable-classes2/ https://www.investopedia.com/terms/p/product-life-cycle.asp https://microservices.io/patterns/reliability/circuit-breaker.html https://developers.redhat.com/blog/2018/10/01/patterns-for-distributed-transactions-within-a-microservices-architecture/#:~:text=What%20is%20a%20distributed%20transaction,be%20called%20in%20a%20sequence. https://microservices.io/patterns/data/api-composition.html https://microservices.io/patterns/data/cqrs.html https://microservices.io/patterns/data/event-sourcing.html https://microservices.io/patterns/data/transaction-log-tailing.html https://microservices.io/patterns/data/saga.html https://www.redhat.com/en/topics/microservices/what-is-a-service-mesh Rate Limiting API Endpoints in ASP.NET Core | by Changhui Xu | codeburst https://stackoverflow-com.translate.goog/questions/45917831/union-vs-unionwith-in-hashset?_x_tr_sl=zh-CN&_x_tr_tl=en&_x_tr_hl=en-GB&_x_tr_pto=ajax,se,elem,sc https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.union?view=net-5.0#:~:text=The%20Concat%20method%20differs%20from,Union%20returns%20only%20unique%20values. https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.zip?view=net-5.0 https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/nullable-reference-types#:~:text=Nullable%20reference%20types%20aren%27t,and%20a%20nullable%20reference%20type. https://stackoverflow.com/questions/3672920/two-different-dll-with-same-namespace https://dba.stackexchange.com/questions/86143/how-to-join-a-table-with-a-table-valued-function https://stackoverflow.com/questions/879391/linq-any-vs-exists-whats-the-difference Open source container orchestration tool, developed by google for simple calculations Uniform interface,Client–server,Stateless
Cacheable,Layered system, Code on demand (optional)In some cases, you use the services side by side to fulfill distinct roles. For example, an e-commerce site can use Service Bus to process the order, Event Hubs to capture site telemetry, and Event Grid to respond to events like an item was shipped.C# Generics (tutorialsteacher.com) new Just In Time (JIT) compiler that is more optimized, codenamed RyuJIT Single Responsibility Principle (SRP), Open closed Principle (OSP), Liskov substitution Principle (LSP), Interface Segregation Principle (ISP), and Dependency Inversion Principle (DIP).The purpose of the dead-letter queue is to hold messages that can't be delivered to any receiver, or messages that couldn't be processed. Messages can then be removed from the DLQ and inspected.The Accept header describes which format you want a response body to arrive as. For example, responses can be delivered either as XML or JSON by modifying the Accept header. This header is required in all requests. A response is any reply from to your application.GET,POST,PUT,DELETE,PATCH https://www.c-sharpcorner.com/article/garbage-collection-in-net/ The architecture must be stable
Services must be cohesive. A service should implement a small set of strongly related functions.
Services must conform to the Common Closure Principle - things that change together should be packaged together - to ensure that each change affect only one service
Services must be loosely coupled - each service as an API that encapsulates its implementation. The implementation can be changed without affecting clients
A service should be testable
Each service be small enough to be developed by a “two pizza” team, i.e. a team of 6-10 people
Each team that owns one or more services must be autonomous. A team must be able to develop and deploy their services with minimal collaboration with other teams.file streams, database connections, network related instances, handles to different classes, registries, pointers, etc. Unmanaged resources can be cleaned-up using 'Dispose' method and 'using' statement.In the Azure portal, navigate to your AKS cluster, and select Logs on the left-hand side. Close the Example Queries window if it appears.
On the left-hand side, choose Logs. To view the kube-audit logs, enter the following query in the text box:
AzureDiagnostics
| where Category == "kube-audit"
| where log_s contains "nginx"
| project log_sCluster IP service, Node Port service
External Name Creation service and
Load Balancer serviceWhat is ClusterIP?
The ClusterIP is the default Kubernetes service that provides a service inside a cluster (with no external access) that other apps inside your cluster can access.
What is NodePort?
The NodePort service is the most fundamental way to get external traffic directly to your service. It opens a specific port on all Nodes and forwards any traffic sent to this port to the service.
What is the LoadBalancer in Kubernetes?
The LoadBalancer service is used to expose services to the internet. A Network load balancer, for example, creates a single IP address that forwards all traffic to your service.Kubectl is a CLI (command-line interface) that is used to run commands against Kubernetes clusters.https://docs.microsoft.com/en-us/azure/architecture/patterns/circuit-breaker The term service mesh is used to describe the network of microservices that make up such applications and the interactions between them. As a service mesh grows in size and complexity, it can become harder to understand and manage. Its requirements can include discovery, load balancing, failure recovery, metrics, and monitoring. A service mesh also often has more complex operational requirements, like A/B testing, canary rollouts, rate limiting, access control, and end-to-end authentication.https://docs.microsoft.com/en-us/azure/architecture/patterns/throttling The Concat method differs from the Union method because the Concat method returns all the elements in the input sequences including duplicates, whereas Union returns only unique values.extern alias TheAliasYouGaveTheReference \n TheAliasYouGaveTheReference::Acme.Foo fYou need CROSS APPLY not join If(0 == Interlocked.Exchange(ref usingResource, 1)) mut.WaitOne(); mut.ReleaseMutex() Provides a mechanism that synchronizes access to objects. Monitor.Enter(rnd); Monitor.Exit(rnd);
- Get link
- X
- Other Apps
Comments